package com.yimi.yinhepda.views.exceptionsUpload_module;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.pda.ym.base.BaseActivity;
import com.yimi.yinhepda.R;

/**
 * 异常上报界面
 *
 * @author 000432
 */
public class ExceptionUploadActivity extends BaseActivity {

    @Override
    public String getPageName() {
        return "异常上报";
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_exception_upload);
        ((TextView) findViewById(R.id.title)).setText("异常上报");
        ((TextView) findViewById(R.id.num)).setVisibility(View.INVISIBLE);
        findViewById(R.id.problembill_upload).setOnClickListener(this);
        findViewById(R.id.withouthead_upload).setOnClickListener(this);
        findViewById(R.id.exception_upload_back_btn).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.problembill_upload:
                //问题件上报
                Intent intent1 = new Intent(this, ProblemBillUploadActivity.class);
                startActivity(intent1);
                break;
            case R.id.withouthead_upload:
                //无头件上报
                Intent intent2 = new Intent(this, WithoutTitleBillActivity.class);
                startActivity(intent2);
                break;
            case R.id.exception_upload_back_btn:
                finish();
                break;
            default:
                break;
        }
    }
}
